package cn.shop.merchant.req;

import cn.shop.utils.enums.Gender;

import javax.validation.constraints.Min;

/**
 * @author : 李一涵
 * @date : Created in 2021-11-16 15:45
 * @description :
 */
public class PlayerAccountQueryReq {

    @Min(value = 1, message = "页码不能为0")
    private int current;
    @Min(value = 1, message = "每页记录数不能为0")
    private int size;
    private String username;
    private Gender gender;
    private String city;
    private int orderByIntegral;
    private int orderByRank;
    private int orderByStatus;

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public int getOrderByIntegral() {
        return orderByIntegral;
    }

    public void setOrderByIntegral(int orderByIntegral) {
        this.orderByIntegral = orderByIntegral;
    }

    public int getOrderByRank() {
        return orderByRank;
    }

    public void setOrderByRank(int orderByRank) {
        this.orderByRank = orderByRank;
    }

    public int getOrderByStatus() {
        return orderByStatus;
    }

    public void setOrderByStatus(int orderByStatus) {
        this.orderByStatus = orderByStatus;
    }

    @Override
    public String toString() {
        return "PlayerAccountQueryReq{" +
                "current=" + current +
                ", size=" + size +
                ", username='" + username + '\'' +
                ", gender=" + gender +
                ", city='" + city + '\'' +
                ", orderByIntegral=" + orderByIntegral +
                ", orderByRank=" + orderByRank +
                ", orderByStatus=" + orderByStatus +
                '}';
    }
}
